using System;
using System.Collections.Generic;
using System.Text;

namespace ImagesMath.Repere
{
    public class Repere
    {
        public M33 lba;
        public VR3 trs;

        public Repere()
        {
            lba = new M33();
            trs = new VR3(0,0,0);
        }
        public Repere(VR3 v1, VR3 v2, VR3 v3, VR3 t)
        {
            lba = new M33(v1, v2, v3,true);
            trs = t;
        }

        public Repere(M33 m, VR3 t)
        {
            lba = m;
            trs = t;
        }

        public Repere Inverse()
        {
            Repere newRepere = new Repere(lba.inverse(), -(lba * trs));
            return newRepere;
        }
    }
}
